//投票列表
exports.search_vote_activity_list = function (req, res) {

    //获取restful参数
    var restfulParams = req.routeInfo.restfulParams;

    //最终结果
    var resultData = {};

    //任务流创建
    async.waterfall([
            //1.投票列表
            function (cb) {
                R.SEND_HTTP(
                    req,
                    {
                        url: CORE_APIConfig.coreAPI.search_vote_activity_list + "/vac_oid/" + restfulParams.vac_oid,
                        method: 'POST',
                        data: {
                            fields: [ "vac_id","vac_name","vac_share_num", "vac_browse_num", "vac_attend_num", "vac_start_time","vac_end_time","vac_last_do_time"].join(",")
                        }
                    },
                    function (err, data) {
                        //判断是否有错误信息
                        if (err) {
                            return cb(err, data);
                        }

                        resultData.VoteActivityList = data;
                        cb();
                    }
                );

            },

        ], function (err, result) {

            //返回最终拼接结果
            RES.response(res, true, resultData);

        }
    );

}